<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="testpackage.TrafficBean"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/webservice2.js"></script>
<title>Autoverleih Campus Wien ITS11</title>
</head>
<body>
	<%
	testpackage.TrafficController tf = new testpackage.TrafficController();
	testpackage.TrafficBean bean = tf.createBean();
	bean.setStandardValues();
	bean.setState("CA");
	bean.setCity("NYC");
	bean.setInclude_map(true);
	String trafficUrl = tf.buildURL(bean);
	%>

	<h4>Bitte w&auml;hlen Sie Ihr Auto aus:</h4>
	<select name="carselect" id="carselect" size="1">
		<option value="-1" selected>Auto w&auml;hlen</option>
	</select>
	
	<h4>Currency:</h4>
	<select name="targetCurrency" id="targetCurrency" size="1">
		<option value="EUR" selected>EUR</option>
		<option value="USD" >USD</option>
		<option value="GBP" >GBP</option>
	</select>
	<h4>Ihre Wahl:</h4> 
	<div id="showCarAndPrice"></div>
	<input type="hidden" id="IDTrafficUrl" name="TrafficUrl" value="<%=trafficUrl %>">
	<input type="button" value="Auto buchen" id="rentCar"><br>
	<h4>Bitte geben Sie Ihr ausgeborgtes Auto zur&uuml;ck:</h4>
	<select name="carreturn" id="carreturn" size="1">
		<option value="-1" selected>Auto w&auml;hlen</option>
	</select>
	<p><input type="button" value="Auto zur&uuml;ckgeben" id="returnCar"></p>
	<h4>Verkehrs-Informationen anzeigen</h4>
	<input TYPE="button" value="show Traffic" id="btnTrafficShow"">
	<input TYPE="button" value="hide Traffic" id="btnTrafficHide"">
	<div id="trafficInfo"></div>
</body>
</html>